package org.jeecg.modules.oa.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.oa.entity.OaJournal;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.oa.entity.OaReportWeek;
import org.jeecg.modules.system.entity.SysUser;
import java.util.Date;
import java.util.List;

/**
 * @Description: 工作日志表
 * @Author: jeecg-boot
 * @Date:   2019-09-11
 * @Version: V1.0
 */
public interface IOaJournalService extends IService<OaJournal> {


    Page<OaJournal> listByUserPage(Page<OaJournal> page, OaJournal oaJournal);

    List<OaJournal> findListByDateList(SysUser user, List<Date> dateList);

    OaJournal findByUserDate(OaJournal journal);

    Page<OaJournal> findPcAllList(Page<OaJournal> page, OaJournal oaJournal,String departIds);

    Page<OaJournal> find(Page<OaJournal> page, OaJournal journal);

    List<OaJournal> findAllUnread(OaJournal journa) ;

    List<OaJournal> findAllListToOutSource(OaJournal journal);

    OaJournal getByCreateByAndToday(String id);

    List<OaJournal> appFindJournalList(String date,String userId);

    List<OaReportWeek> appFindReportWeekList(String date,String userId);
}
